using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class CoinEvent
{
    public static event Action<int> onScoreChange;
    public static event Action<int> onCoinChange;

    public static void ScoreChange(int score)
    {
        onScoreChange?.Invoke(score);
    }
    
    public static void CoinChange(int coinNum)
    {
        onCoinChange?.Invoke(coinNum);
    }
}
